<div class="first-section">
		<?php /*echo $this->htmlFlash('/public/upload/files/ToaNha.swf',
									array(
										'width'	=>'443',
										'height'=>'235'));
		*/						
		?>
	
	<div id="container" class="mid-image">
			<div id="slider">
				<ul>				
					<li><a ><img src="/public/templates/default/images/image-2.jpg" alt="Preview" /></a></li>			
					<li><a ><img src="/public/templates/default/images/images 3.jpg" alt="Preview" /></a></li>
					
					<li><a ><img src="/public/templates/default/images/mid-image.jpg" alt="Preview" /></a></li>
					<li><a ><img src="/public/templates/default/images/img3.jpg" alt="Preview" /></a></li>
				</ul>
			</div>
	</div>
</div>
	
<!--	END IMAGE SLIDER-->
	
	<div class="left-image">
		<div class="title1"
			style="color: #ffffff; border-bottom: solid 1px #00deff; width: 200px; padding-bottom: 7px;">
			<a class="related-comment" href="<?php echo $this->baseUrl('default/comment/');?>">Các ý kiến gần đây&nbsp;</a>
		</div>
		<a href="#" class="lnkComment">Góp ý</a>
		<div class="description"style="color: #ffffff; width: 200px; padding-top: 5px;">
		<?php 
			foreach ($this->comments as $comment){
				echo '<p><a href="'.$this->baseUrl('default/comment/view/?id='.$comment['yKienId']).'" >'.$comment['chuDe'].'</a><p>';	
		}?>
		</div>
	</div>

<div style="float: right; width: 1026px">
	<div class="left-section">
		<div class="left-box2">
			<div class="title1 random-post-title" style="margin-left: 0px">Bài viết nỗi bật</div>
			<div class="pics" id="randPost">
			<?php foreach ($this->randPosts as $rand) {
				echo '<a href="'.$this->baseUrl('default/view/?bv='.$rand['baiVietId']).'">
				<span>'.$rand['tieuDe'].'</span>
				    	<img src="/public/upload/images/'.$rand['hinh'].'" width="250" height="180" />
				    	
				      </a>';
			}?> 
			     
			</div> 
		</div>
		
	</div>
	<div>

	<div class="third-section">
		<div class="down-box2">
			<div class="title3 title-right"><a href="">Tin tức</a></div>
			<div class="description">
				<ul class="description-other">
	           	<?php 
	                $i=0;
	                foreach ($this->paginatorNews as $news) {
	                   	if ($i==0) {
	                   		$i++;
	                   		continue;
	                }
	                              	
	                echo '<li>
	                		<a href="'.$this->baseUrl('/default/view/?bv=').$news['baiVietId'].'">'.$news['tieuDe'].'</a>
	                	</li>';
	                }
	            ?>
	            </ul>
			</div>
		</div>
		<div class="down-box1">
			<div class="title3"><a href="<?php echo $this->baseUrl('default/items/?mn=3');?>">Tin tức</a></div>
			<div class="description1 maincontent-index">
	        <?php 
	        	foreach ($this->paginatorNews as $news) {
//	        		echo  "<pre>";
//	        		print_r($news);
//	        		echo "</pre>";
	               	echo '<h4 class="news-title">
	              			<a href="'.$this->baseUrl('/default/view/?bv=').$news['baiVietId'].'">'.$news['tieuDe'].'</a>
	                      </h4>';
	                echo '<a href="'.$this->baseUrl('/default/view/?bv=').$news['baiVietId'].'">
	                		<img class="desc-img" src="/public/upload/images/'.$news['hinh'].'" style="float:right; margin:3px; margin-left:5px;">
	                	</a>';
	                echo  $this->truncate($news['noiDung'],0,350);
		            
					break;
	             }
	        ?>
		    </div>
		</div>
	</div>
	
	<div class="third-section">
		<div class="down-box2">
			<div class="title3 title-right">Dịch vụ</div>
			<div class="description">
				<ul class="description-other">
                    <?php
                    $i=0; 
                    foreach ($this->paginatorService as $service) {
                        if ($i==0) {
                           $i++;
                           continue;
                    	}
                    echo '<li><a href="'.$this->baseUrl('/default/view/?bv='.$service['baiVietId']).'">'.$service['tieuDe'].'</a></li>';
                    }
                    ?>
				</ul>
			</div>
		</div>
		<div class="down-box1">
			<div class="title3"><a href="<?php echo $this->baseUrl('default/items/?mn=4');?>">Dịch vụ</a></div>
			<div class="description1">
			<?php foreach ($this->paginatorService as $service) {
				echo '<h4 class="news-title">
	              			<a href="'.$this->baseUrl('/default/view/?bv=').$service['baiVietId'].'">'.$service['tieuDe'].'</a>
	                 </h4>';
				echo '<a href="'.$this->baseUrl('default/view/?bv='.$service['baiVietId']).'">
						<img class="desc-img" src="/public/upload/images/'.$service['hinh'].'" style="float:right; margin:-35px -15px 0px 5px;"/>
					 </a>';
				echo $this->truncate($service['noiDung'],0,250);
				break;
			}
			?>
			</div>
		</div>
	</div>
	</div>
</div>

<div class="adv" >
	<a href="">
		<img alt="quang cao" src="/public/upload/images/viec_lam_viec_nam_right_300_155.gif">
	</a>
	<a href="">
		<img alt="quang cao" src="/public/upload/images/thiet_ke_web_trustvn_4.gif">
	</a>
	<!--<a href="">
		<?php //echo $this->htmlFlash('/public/upload/files/ld-promotion-300x150.swf',
				//				array('height'=>'155','width'=>200)
					//		);
		?>
	</a>
	-->
	<a href="">
		<img alt="quang cao" src="/public/upload/images/khung_quang_cao_copy.jpg">
	</a>
</div>
